<?php
/**
 * Created by PhpStorm.
 * User: yangjiaming
 * Date: 2018/2/6
 * Time: 19:30
 */

use Eagle\Service\Backend;
class IndexController extends BaseController
{
    public function behaviors()
    {
        parent::verifyLogin();
    }
    public function indexAction()
    {
        $this->display('index');
    }
    public function homeAction()
    {
        $this->display('home');
    }
    public function mainAction()
    {
        $this->display('main');
    }
    public function goodsAction()
    {
        $this->display('goods');
    }
    public function goodsListAction()
    {
        $params = [];
        $page = $this->getPage();
        $backend = new Backend();
        $this->inputResult($backend->goodsList($params, $page));
    }
    public function goodsAddAction()
    {
        $this->display();
    }
}